/*
 *
2 + 3i

 */
#include <iostream>
using namespace std;
struct Complex{
	double r ; //实部
	double i; //虚部
	void init(double rr, double ii){
		r = rr;
		i = ii;
	}
	double real(){
		return r;
	}
	double image(){
		return i;
	}
};
int main(void){
	Complex a;
	a.init(2,3);
	cout << a.real() << " + " << a.image() << "i" << endl;
	return 0;
}
